package main

import (
	"fmt"
	_ "github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
)

func main() {
	db, err := sqlx.Connect("mysql", "root:root@tcp(127.0.0.1:3306)/bill")
	if err != nil {
		fmt.Println("链接错误", err)
	}
	fmt.Println(db)
}
